
app.controller('homeCtrl',['$scope','$http','$timeout',function($scope,$http,$timeout){
	$scope.data = null;
	$http.get('http://h5.yztctech.net/api/axf/apihome.php')
	.success(function(req){
		console.log(req);
		$scope.data = req.data;
		$timeout(function(){
			var swiper = new Swiper('.swiper-container',{
				pagination:'.swiper-pagination',
				spaceBetween:30,
				autoplay:2500,
				loop:true
			});
		},100)
	})
	
	$scope.data1 = [];
	$http.get('http://h5.yztctech.net/api/axf/apihomehot.php')
	.success(function(req){
		console.log(req);
		$scope.data1 = req.data;
	})

}])